﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using xiaodingmarket_Domain_core.Models;
using static xiaodingmarket_Domain.Models.EunmType;

namespace xiaodingmarket_Domain.Models
{
    public class OrderDetail:Entity
    {
        public OrderDetail()
        {

        }
        public OrderDetail(Guid id,Guid productid, decimal price)
        {
            Id = id;
            Productid = productid;
            this.price = price;
        }

        /// <summary>
        /// 商品或悬赏的唯一标识（做外键？）
        /// </summary>
        public Guid Productid { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal price { get; set; }
        public OrderCommodity orderCommodity { get; set; }
    }
}
